﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Net.Mail;

namespace Candy.Web.Model
{
    public class EMailManager
    {
        public static void SendMail(string sender, string recep, string subject, string body)
        {
            MailMessage mm = new MailMessage(new MailAddress(sender, "Candy"), new MailAddress(recep, "bla"));
            mm.Subject = subject;
            mm.Body = body;
            SmtpClient client = new SmtpClient();
            client.Send(mm);
        }
    }
}